﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" Inherits="Nivdal.AddNewSponsor" 
Title="Admin add new sponsor - Nivdal.com!"  StylesheetTheme="SkinFile"  Codebehind="AddNewSponsor.aspx.cs" %>

<asp:Content ID="PageNameContent" ContentPlaceHolderID="PageNamePlaceHolder" runat="server">
    <asp:Label ID="PageNameLabel" runat="server" Text="Admin >> Sponsors >> Add new sponsor" CssClass="PageNameContentStyle"></asp:Label>
</asp:Content>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div class="basic_element">
    <div class="red_title">
       <asp:Label ID="AddNewSponsorLabel" runat="server" Text="Add new sponsor" CssClass="white_title"></asp:Label>
    </div>
    <div class="padding5">
    
        <asp:Label ID="ErrorLabel" runat="server" SkinID="ErrorLabel"></asp:Label>
        <table style="width: 100%;">
            <tr>
                <td>
                    <asp:Label ID="Label1" runat="server" Text="Sponsor Name:" SkinID="InfoLabel"></asp:Label>
                    </td>
                <td>
                
                    <asp:TextBox ID="SponsorNameTextBox" runat="server" MaxLength="256"></asp:TextBox>
                
                </td>
                <td>
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td>
                     <asp:Label ID="Label2" runat="server" Text="Sponsor image:" SkinID="InfoLabel"></asp:Label></td>
                <td>
                    <asp:FileUpload ID="SponsorFileUpload" runat="server" />
                </td>
                <td>
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="Label4" runat="server" Text="Link:" SkinID="InfoLabel"></asp:Label></td>
                <td>
                    <asp:TextBox ID="LinkTextBox" runat="server" MaxLength="256" Width="160px"></asp:TextBox>
                </td>
                <td>
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="Label5" runat="server" Text="Contracts Limit:" SkinID="InfoLabel"></asp:Label></td>
                <td>
                
                    <asp:TextBox ID="SponsorContactsLimitTextBox" runat="server" MaxLength="12" Width="94px"></asp:TextBox>
                
                </td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td align="center">
                    &nbsp;</td>
                <td>
                    &nbsp;
                    <asp:RegularExpressionValidator runat="server" ID="RegularExpressionValidator1" ControlToValidate="SponsorContactsLimitTextBox"
                        ErrorMessage="Illigal value" ValidationExpression="^[0-9]{1,12}$" ValidationGroup="AddNewSpnsor"></asp:RegularExpressionValidator>
                </td>
                <td>
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="Label6" runat="server" Text="Priority:" SkinID="InfoLabel"></asp:Label></td>
                <td>
                    <asp:DropDownList ID="PriorityDropDownList" runat="server">
                        <asp:ListItem>0</asp:ListItem>
                        <asp:ListItem>1</asp:ListItem>
                        <asp:ListItem>2</asp:ListItem>
                        <asp:ListItem>3</asp:ListItem>
                        <asp:ListItem>4</asp:ListItem>
                        <asp:ListItem>5</asp:ListItem>
                        <asp:ListItem>6</asp:ListItem>
                        <asp:ListItem>7</asp:ListItem>
                        <asp:ListItem>8</asp:ListItem>
                        <asp:ListItem>9</asp:ListItem>
                    </asp:DropDownList>
                </td>
                <td>
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td>
                </td>
                <td>
                    &nbsp;</td>
                <td>
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;</td>
                <td>
                    <asp:Button ID="Button2" runat="server" Text="Submit" OnClientClick='if (!confirm("Are you sure you want to add the Sponsor?")) { return false; }'
                        ValidationGroup="AddNewSpnsor" OnClick="AddSponsorButton_Click" CssClass="GreenButtonTextStyle" />
                </td>
                <td>
                    &nbsp;</td>
            </tr>
        </table>
        <asp:Label ID="FeedbackMessageLabel" runat="server" Text="" SkinID="GreenSmallHeaderLabel"></asp:Label>
        <br />
        <br />
    </div>
    </div>
    <asp:LinkButton ID="BackToSponsorsSummaryPageLinkButton" runat="server" SkinID="TitleLink"
        PostBackUrl="~/SponsorsSummary.aspx">Back to Sponsors summary page</asp:LinkButton>
</asp:Content>

